#ifndef _VECTOR4_H__
#define _VECTOR4_H__

#include<d3dx10.h>

class Vector4 : public D3DXVECTOR4
{
public:
	inline float Length() { return D3DXVec4Length(this); }
	inline Vector4 *Normalize() { return static_cast<Vector4 *>(D3DXVec4Normalize(this, this)); }
	inline float Dot(const Vector4 &b) { return D3DXVec4Dot(this, &b); }
	Vector4(D3DXVECTOR4 &v4) { x = v4.x; y = v4.y; z = v4.z; w = v4.w; }
	Vector4() : D3DXVECTOR4() { }
	Vector4(const float _x, const float _y, const float _z, const float _w) { x = _x; y = _y; z = _z; w = _w; }
	Vector4(const Vector3 &v3) { x = v3.x; y = v3.y; z = v3.z; w = 1.0f; }
};

#endif